import 'package:flutter/material.dart';
import 'package:local_coffee/components/c_appbar/custom_appbar.dart';
import 'package:local_coffee/components/c_button/index.dart';
import 'package:local_coffee/components/hex.dart';
import 'package:local_coffee/components/rgba.dart';
import 'package:local_coffee/routes/index.dart';
import 'package:local_coffee/utils/global.dart';

class LoginMethod extends StatelessWidget {
  
  const LoginMethod({
    Key key
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: customAppBar(
        context: context,
        borderBottom: false
      ),
      body: Container(
        width: G.screenWidth(),
        color: HEX.hexfff,
        child: Column(
          children: <Widget>[
            Container(
              margin: EdgeInsets.only(top: 26),
              width: 80,
              height: 94,
              child: Image.asset(
                P.login1,
                fit: BoxFit.cover,
              ),
            ),
            Container(
              margin: EdgeInsets.only(top: 116),
              child: CButton.normal(
                width: 300,
                child: Text('微信 登录'),
                color: HEX.hexfff,
                bgColor: RGBA.rgba49c265,
                onPressed: () {}
              ),
            ),
            Container(
              margin: EdgeInsets.only(top: 25),
              child: CButton.normal(
                width: 300,
                child: Text('邮箱验证码登录'),
                color: RGBA.rgba88afd5,
                bgColor: HEX.hexfff,
                borderColor: RGBA.rgba88afd5,
                plain: true,
                onPressed: () => G.pushNamed(N.loginMail)
              ),
            )
          ],
        ),
      ),
    );
  }
}